package org.grayrabbit.cms.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

@Entity
@Table(name = "CMS_CONTENT")
@DiscriminatorValue("VideoContent")
public class VideoContent  extends Content implements java.io.Serializable{

	private static final long serialVersionUID = 5563220907143247077L;
	
	private String videoType;
	private String videoTags;
	private String videoCopyright;
	private Integer videoSocer;
	private Date videoYear;
	
	public VideoContent(){};
	
	@Column(name = "VIDEO_TYPE", length = 32)
	public String getVideoType() {
		return this.videoType;
	}

	public void setVideoType(String videoType) {
		this.videoType = videoType;
	}

	@Column(name = "VIDEO_TAGS", length = 256)
	public String getVideoTags() {
		return this.videoTags;
	}

	public void setVideoTags(String videoTags) {
		this.videoTags = videoTags;
	}

	@Column(name = "VIDEO_COPYRIGHT", length = 256)
	public String getVideoCopyright() {
		return this.videoCopyright;
	}

	public void setVideoCopyright(String videoCopyright) {
		this.videoCopyright = videoCopyright;
	}

	@Column(name = "VIDEO_SOCER", precision = 6, scale = 0)
	public Integer getVideoSocer() {
		return this.videoSocer;
	}

	public void setVideoSocer(Integer videoSocer) {
		this.videoSocer = videoSocer;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "VIDEO_YEAR", length = 7)
	public Date getVideoYear() {
		return this.videoYear;
	}

	public void setVideoYear(Date videoYear) {
		this.videoYear = videoYear;
	}
	
	@Transient
	public String getContextType() {
		return "VideoContent";
	}

	

}
